<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>预约详情</title>
    <link rel="stylesheet" href="../css/page-health-orderDetail.css"/>
    <script src="../plugins/vue/vue.js"></script>
    <script src="../plugins/vue/axios-0.18.0.js"></script>
    <script src="../plugins/healthmobile.js"></script>
    <script>
        var phone = getUrlParam("phone");//根据请求URL中的参数名称获取对应的值
        //alert(id);
    </script>
</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
<div id="app" class="app">
    <!-- 页面头部 -->
    <div class="top-header">
        <span class="f-left"><i class="icon-back" onclick="history.go(-1)">返回</i></span>
        <span class="center">传智健康</span>
        <span class="f-right"><i class="icon-more"></i></span>
    </div>
    <!-- 页面内容 -->
    <div class="contentBox">
        <div class="card">
            <div class="project-img">
                <img :src="imgUrl" width="100%" height="100%"/>
            </div>
            <div class="project-text">
                <h4 class="tit"><b>体检套餐:</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{plan.setmeal}}</h4>
                <br>
                <p class="subtit">体检人: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{plan.member}}</p>
                <p class="subtit">体检日期:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{date}}</p>
            </div>
        </div>
        <div class="table-listbox">
            <div class="box-title">
                <i class="icon-zhen"><span class="path1"></span><span class="path2"></span></i>
                <a href="word.html">
                    <span style="color: gray">健康师建议及治疗方案</span></a>
            </div>
            <div class="box-title">
                <b>体检报告:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b>{{plan.report}}
                <br>
                <br>
                <hr style="background-color: #0084be">
                <b>健康师意见:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b>{{plan.advise}}
                <br>
                <br>
                <hr style="background-color: #0084be">
                <b>建议药物:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b>{{plan.pill}}
                <br>
                <br>
                <hr style="background-color: #0084be">
                <b>建议运动:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b>{{plan.sport}}
                <br>
                <br>
                <hr style="background-color: #0084be">
                <b>建议膳食:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b>{{plan.food}}
                <br>
                <br>
            </div>
            <div class="box-button">
                <a @click="toReviews()" class="order-btn">去点评一下吧</a>
            </div>
        </div>
    </div>
</div>
<script>
    var vue = new Vue({
        el: '#app',
        data: {
            imgUrl: null,//套餐对应的图片链接
            advice: {},//模型数据（套餐信息），用于页面数据展示
            plan: {},
            date: null
        },
        mounted() {
            axios.post("/advice/findByPhone.do?phone=" + "15695565285").then((response) => {
                if (response.data.flag) {
                    this.plan = response.data.data;
                    var date = response.data.data.date;
                    let split = date.split(" ");
                    this.date = split[0];
                    this.imgUrl = 'http://qhvvq0j2k.hd-bkt.clouddn.com/' + this.plan.img;
                }
            });
        },
        methods: {

            toReviews() {
                alert("该功能暂未开放");
            }
        }
    });
</script>
</body>
</html>